package com.gdcn.zb.common.page.logic;

import com.gdcn.zb.common.page.model.Page;

/**
 * @author zengweizhong
 *
 */
public class PageContext {
	
	private static ThreadLocal pageThreadHolder = new ThreadLocal();
	
	public static void storePage(Page page){
		pageThreadHolder.set(page);
	}
	
	public static void destroyPage(){
		pageThreadHolder.set(null);
	}
	
	public static Page getCurrentPage(){
		return (Page) pageThreadHolder.get();
	}

}
